//
//  TXYRespErrorParse.m
//  FunnyVideo
//
//  Created by 李鑫 on 15/8/28.
//  Copyright © 2015年 NewEggTech. All rights reserved.
//

#import "TXYRespErrorParse.h"
#import "TXYRespCode.h"

@implementation TXYRespErrorParse


+ (NSString *)errorMessageForid:(NSUInteger)err_code{
    switch (err_code) {
        case TXYRespCodeSucc:
            return @"参数正确";
            break;
            case TXYRespCodeSigNotMatch:
            return @"appid/userid 与签名不匹配";
            break;
            case TXYRespCodeParaErr:
            return @"参数错误";
        default:
            return @"未知错误";
            break;
    }
}

+ (BOOL)checkDataOK:(NSUInteger)error_code{
    if(error_code == TXYRespCodeSucc)
    {
        return YES;
    }
    
    return NO;
}
@end
